﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class PhongChieuBUS
    {
        private PhongChieuDAO DAO = new PhongChieuDAO();

        public BindingList<PhongChieuDTO> GetList()
        {
            return DAO.GetList();
        }

        public BindingList<PhongChieuDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<PhongChieuDTO> GetList_Rap(int _Ma)
        {
            return DAO.GetList_Rap(_Ma);
        }

        public BindingList<PhongChieuDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public BindingList<PhongChieuDTO> GetListLikeName_QL(string _Ten)
        {
            return DAO.GetListLikeName_QL(_Ten);
        }

        public BindingList<PhongChieuDTO> GetListLikeName_QL_DaXoa(string _Ten)
        {
            return DAO.GetListLikeName_QL_DaXoa(_Ten);
        }

        public PhongChieuDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public int IdRapFromID(int _Ma)
        {
            return DAO.IdRapFromID(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add(PhongChieuDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public bool CheckExists(int _Ma, string _Ten)
        {
            return DAO.CheckExists(_Ma, _Ten);
        }

        public bool Update(PhongChieuDTO _DTO)
        {
            return DAO.Update(_DTO);
        }
    }
}
